﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated) {
%>
       <ul class="vertical_menu">
            <li><%= Html.ActionLink(Page.User.Identity.Name, "UserProfile", "User")%></li>
            <li><%= Html.ActionLink("Útskráning", "LogOff", "Account") %></li>
            <li><%= Html.ActionLink("Styrkja okkur", "Details/3", "SubSites") %></li>
       </ul>
<% 
    }
    else {
%> 
        <ul class="vertical_menu">
            <li><%= Html.ActionLink("Innskráning", "LogOn", "Account") %></li>
            <li><%= Html.ActionLink("Nýskráning", "Register", "Account")%></li>
            <li><%= Html.ActionLink("Styrkja okkur", "Details/3", "SubSites")%></li>
        </ul>
<%
    }
%>
